

/**
 * This class is for Non-java clients. Please do not remove or modify.
 */

package com.hazelcast.client.test;

import com.hazelcast.nio.ObjectDataInput;
import com.hazelcast.nio.ObjectDataOutput;
import com.hazelcast.nio.serialization.StreamSerializer;

import java.io.IOException;

public class Derived2CustomSerializer implements StreamSerializer<Derived2Custom> {
    @Override
    public void write(ObjectDataOutput out, Derived2Custom object) throws IOException {
        out.writeInt(object.getValue());
    }

    @Override
    public Derived2Custom read(ObjectDataInput in) throws IOException {
        return new Derived2Custom(in.readInt());
    }

    @Override
    public int getTypeId() {
        return 5;
    }

}
